package com.bsj.pay.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.bsj.pay.common.Result;
import com.bsj.pay.model.OrderBean;
import com.github.pagehelper.PageInfo;

public interface OrderService extends BaseService<OrderBean>{
	
	int reGetAll();
	
	int removeByTime(long startTime,long endTime);
	
	int insertTemp(OrderBean order);
	
	boolean payNotify(Long paramLong,String realOrderNo,int type)throws Exception;
	
	double sumMoney(OrderBean order);
	
	List<OrderBean> queryDayList(OrderBean order);
	
	PageInfo<OrderBean> pageDayFinanceList(OrderBean t,int pageNum,int pageSize);
	
	PageInfo<OrderBean> notGetCdkPageList(OrderBean t, int pageNum, int pageSize);
	
	OrderBean selectLastByChargeAccount(String charge_account);
	
	OrderBean getLastByChargeAccountId(Long chargeAccountId);
	
	void MerchantNotifyTask()throws Exception;
	
	void QueryOrderTask()throws Exception;
	
	void QueryAccountOrderTask()throws Exception;
	
	void queryOrderStatus(OrderBean order,int sucStatus);
	
	void queryAccountOrderStatus(OrderBean order,int sucStatus);
	
	int updateGetCdkSmsBySendTime(String phone,String verCode);
	
	Result pay(HttpServletRequest request, String out_order_no, String pay_type, String amount, Long merchantId, String notify_url, String operator)throws Exception;
}
